/**
 * 站点配置信息
 */
class SiteAppSetting {
  /** NETCore 后端API地址*/
  NETCoreAPIUrl = '';
  /** 域*/
  Domain = '';
  /** GraphApiEndPoint 访问终结点*/
  GraphApiEndPoint = '';
  /** 站点相对地址*/
  SiteRelativeUrl = '';



  /** AAD与FL部门对应列表*/
  FLAD: string = '';

  /** 合同、台账 列表GUID*/
  StandingBook: string = '';
  /** 规章制度 列表GUID*/
  Regulations: string = '';
  /** 案件管理 列表GUID*/
  CaseManagement: string = '';
  /** 文档水印 链接*/
  DocumentLink: string = '';

  /** 案件类型 列表GUID*/
  CaseType: string = '';
  /** 部门列表 列表GUID*/
  Departments: string = '';
  /** 公司设置 列表GUID*/
  Companies: string = '';
  /** 规定分类 列表GUID*/
  RegulationsType: string = '';
  /** 规章修改性质 列表GUID*/
  ReviseNature: string = '';
  /** 合同期限 列表GUID*/
  ContractPeriod: string = '';
  /** 合同性质 列表GUID*/
  ContractNature: string = '';
  /** 合同修改性质 列表GUID*/
  ContractReviseNature: string = '';
  /** 合同重要性 列表GUID*/
  ContractImportance: string = '';
  /** 律师审查 列表GUID*/
  LawerReview: string = '';
  /** 审查担当 列表GUID*/
  ReviewOn: string = '';
  /** 问题 列表GUID*/
  Question: string = '';
  /** FL 申请书GUID*/
  Petition: string = '';

  //库
  /** 合同 文档库GUID*/
  ContractLib: string = '';
  /** 案件管理 文档库GUID*/
  CaseLib: string = '';
  /** 规章制度 文档库GUID*/
  RegulationsLib: string = '';
  /** 通用 文档库GUID*/
  CommonLib: string = '';
  /** 合同申请书 文档库GUID*/
  ContractPetitionLib: string = '';
  /** 规章制度申请书 文档库GUID*/
  RegulationsPetitionLib: string = '';

  /** 合同 文档库 根路径 /sites/{站点}}/ContractLib*/
  ContractLibRelativeUrl: string = '';
  /** 案件管理 文档库 根路径 /sites/{站点}}/CaseLib*/
  CaseLibRelativeUrl: string = '';
  /** 规章制度 文档库 根路径 /sites/{站点}}/RegulationsLib*/
  RegulationsLibRelativeUrl: string = '';
  /** 通用 文档库 根路径 /sites/{站点}}/CommonLib*/
  CommonLibRelativeUrl: string = '';
  /** 草稿 文档库 根路径 /sites/{站点}}/DUMYLib*/
  DumyLibRelativeUrl: string = '';
  /** 合同申请书 文档库 根路径 /sites/{站点}}/ContractLib*/
  ContractPetitionLibRelativeUrl: string = '';
  /** 规章制度申请书 文档库 根路径 /sites/{站点}}/RegulationsLib*/
  RegulationsPetitionLibRelativeUrl: string = '';

  ApiActionLog: string = '';
  requestUrl: string = '';
  constructor(envCode: number) {
    switch (envCode) {
      case 0:
        this.NETCoreAPIUrl = 'https://yuchen02.weavingbeautiful.vip:8002';
        this.requestUrl = 'https://zhiyi003.weavingbeautiful.vip'
        this.SiteRelativeUrl = '/sites/zhuhuaHT';
        this.Domain = 'https://yuchentech.sharepoint.com';

        this.StandingBook = '33cd7ced-b425-4952-a028-182c33d15be6';
        this.Regulations = 'fc0340a3-6360-4dd1-b913-3fc935fc7dd6';
        this.CaseManagement = 'dc85e8e7-c6cd-474b-812c-1ecbe028db1a';
        this.DocumentLink = 'https://yuchentech-d310d481f8414a.sharepoint.com/sites/zhuhuaHT/SEMWWatermark/Pages/ShowDocPage.aspx';

        this.FLAD = "7ee45c67-dbbf-4465-af7b-3f4c81345d38";
        this.CaseType = '9ddfb327-0f49-4cf0-8940-b22fa3202a7d';
        this.Departments = '5a41afda-66b2-4740-b5f3-04b58dc4c30e';
        this.Companies = 'F912AD3A-9E34-46C7-B872-7DAF64E4C390';
        this.RegulationsType = 'd42f0f70-b245-4064-8ef7-95a0deb907c8';
        this.ReviseNature = 'f3f9bd36-7385-4973-b2b2-867042e76190';
        this.ContractPeriod = 'b99b7180-50fb-4ba7-93a0-fafa61ffdfff';
        this.ContractNature = 'ce3098a2-c06d-447b-931f-2b2a66a583dd';
        this.ContractReviseNature = 'b0202578-398e-49d5-ba1e-8d29055f7d33';
        this.ContractImportance = '6e14e0b4-6d0c-4707-9c8c-3b66de646886';
        this.LawerReview = '5fbb8c6c-2579-4ac8-a501-0d373cd6180a';
        this.ReviewOn = 'de7c6669-4897-46f3-a0f2-c669dffde76f';
        this.Question = '80fb371d-a927-45c6-98c0-f8312dc877e2';

        this.ContractLib = '69cce834-b2cb-4f47-9b66-9b8d9d36b330';
        this.CaseLib = '31d274ee-f1a3-4c9d-b190-470738c45f13';
        this.RegulationsLib = '4c4e8239-4913-4cf7-8491-43e0771aacaa';
        this.CommonLib = '6a57a020-549e-4aef-b354-8b6e39ff4f15';
        this.ContractPetitionLib = 'fb7ddf5e-8c5c-4e69-9748-1ad78c73e3de';
        this.RegulationsPetitionLib = '5de28da8-76ee-4421-b699-e1837022aa95';

        this.Petition = 'd58ddb14-30f0-46c3-ab56-e9155728156c';

        this.ContractLibRelativeUrl = this.SiteRelativeUrl + '/' + 'ContractLib';
        this.CaseLibRelativeUrl = this.SiteRelativeUrl + '/' + 'CaseLib';
        this.RegulationsLibRelativeUrl = this.SiteRelativeUrl + '/' + 'RegulationsLib';
        this.CommonLibRelativeUrl = this.SiteRelativeUrl + '/' + 'CommonLib';

        this.ContractPetitionLibRelativeUrl = this.SiteRelativeUrl + '/' + 'ContractPetitionLib';

        this.RegulationsPetitionLibRelativeUrl = this.SiteRelativeUrl + '/' + 'RegulationsPetitionLib';

        this.GraphApiEndPoint = 'https://graph.microsoft.com';

        break;
      //客户測試环境
      case 1:
        // this.NETCoreAPIUrl = 'https://contract.wxsem.com';
        
        
        // this.NETCoreAPIUrl = 'https://contract.wxsem.com/apitest';
        // this.requestUrl = 'https://contract.wxsem.com/datatest'
        this.NETCoreAPIUrl = 'https://yuchen03.weavingbeautiful.vip:8004';
        this.requestUrl = 'https://zhiyi003.weavingbeautiful.vip'
        this.SiteRelativeUrl = '/sites/contracttest';
        this.Domain = 'https://sumika.sharepoint.cn';
        this.StandingBook = 'f9c3e38e-fe99-4296-af57-1ee7c5e7293b';
        this.Regulations = '4fdfa20a-b75c-4fe3-a250-544bd8dc51c4';
        this.CaseManagement = '7ab08745-dae4-450e-892d-2e2c7701b5fc';
        this.DocumentLink = 'https://sumika-4cba0c0bd1f3dc.sharepoint.cn/sites/contracttest/SEMWWatermark/Pages/ShowDocPage.aspx';

        this.FLAD = "3a5dcd78-08fa-4360-ae48-f09dddf8dc37";
        this.CaseType = '71041b55-e168-4061-ae84-49ef2cb3a1ed';
        this.Departments = '33a65668-ecad-4580-bae8-022ecb02cd8d';
        this.Companies = '5d39ffe6-340c-41a2-b91c-1ba0b14c236f';
        this.RegulationsType = '064fd166-d013-49d1-a954-12dd99134bfb';
        this.ReviseNature = 'cba7b155-6b4c-4a25-a1b2-9e87f51aa85a';
        this.ContractPeriod = 'bfeb29cb-878e-4eeb-8b7d-54e6bb616970';
        this.ContractNature = 'c69e7c2e-5679-4ea1-ae60-9d8d7f4d2f87';
        this.ContractReviseNature = '659cec72-c774-4202-ac2b-5584a49436f3';
        this.ContractImportance = 'cc173702-9d26-4d64-9c32-0051ede20c1e';
        this.LawerReview = '559e251a-b457-4263-a01e-9e027a457784';
        this.ReviewOn = '466602b7-4860-4873-acae-e00d0022e77f';
        this.Question = 'de1fe217-69f0-45e3-9134-110cc3faee2e';

        this.ContractLib = '8505b236-fb62-449a-be37-6572626faece';
        this.CaseLib = '1f4bff9f-fd77-4cf9-a7b4-5357569ac572';
        this.RegulationsLib = 'd207ad4d-c397-45f5-9080-e715e6be0635';
        this.CommonLib = '1a231a95-f891-4053-bdc8-57c2ce01136e';
        this.Petition = 'bd673d01-432c-45d2-80b5-686315b7e015';
        this.ContractPetitionLib = '9cab4549-34b0-45ac-8aaa-461f9a480953';
        this.RegulationsPetitionLib = '6cf26577-8fae-4416-9ece-400d53965aa5';

        this.ContractLibRelativeUrl = this.SiteRelativeUrl + '/' + 'ContractLib';
        this.CaseLibRelativeUrl = this.SiteRelativeUrl + '/' + 'CaseLib';
        this.RegulationsLibRelativeUrl = this.SiteRelativeUrl + '/' + 'RegulationsLib';
        this.CommonLibRelativeUrl = this.SiteRelativeUrl + '/' + 'CommonLib';

        this.ContractPetitionLibRelativeUrl = this.SiteRelativeUrl + '/' + 'ContractPetitionLib';

        this.RegulationsPetitionLibRelativeUrl = this.SiteRelativeUrl + '/' + 'RegulationsPetitionLib';
        this.DumyLibRelativeUrl = this.SiteRelativeUrl + '/' + 'DraftFileLib'

        this.GraphApiEndPoint = 'https://microsoftgraph.chinacloudapi.cn';

        break;

      //客户生产环境
      case 2:
        this.NETCoreAPIUrl = 'https://contract.wxsem.com';
        // this.NETCoreAPIUrl = 'https://yuchen03.weavingbeautiful.vip:8004';
        // this.requestUrl = 'https://zhiyi003.weavingbeautiful.vip'
        this.requestUrl = 'https://contract.wxsem.com/syncapi'
        this.SiteRelativeUrl = '/sites/legaldoc';
        this.Domain = 'https://sumika.sharepoint.cn';
        this.StandingBook = '9e17e4f9-4654-4b73-818d-7fb97ce4e5f0';
        this.Regulations = 'abeea6fa-2ae7-4c14-b4af-3774ae35067f';
        this.CaseManagement = 'ee8fdb8e-e442-438c-940f-d6d9ce1cdc43';
        this.DocumentLink = 'https://sumika-2f6df2f7815827.sharepoint.cn/sites/legaldoc/SEMWWatermark/Pages/ShowDocPage.aspx';
        this.FLAD = "d5cd388b-e35e-45e9-9e32-471af51aaa61";
        this.CaseType = '6ecff645-80f1-49e4-bee5-e08f206a9800';
        this.Departments = '8305d472-3a0e-4777-a19d-4461b5459342';
        this.Companies = '14fc3073-85a9-448f-bf44-25425b6976a4';
        this.RegulationsType = 'b73daca5-69b9-4629-9887-84df37c9868d';
        this.ReviseNature = '2c75ae98-745d-4807-8af0-e0dd09b52a7c';
        this.ContractPeriod = 'd27e0adf-aff5-4238-9057-313566a183a8';
        this.ContractNature = 'bddae57d-9b6d-4a79-bfc5-815c10620258';
        this.ContractReviseNature = 'a5a07a92-4e64-48e2-8039-315c00cde612';
        this.ContractImportance = '3d6abd88-d25e-44ff-a812-1768df685d05';
        this.LawerReview = 'b3feb73a-77e4-4fe4-bc38-b531c04935aa';
        this.ReviewOn = '807d8802-7828-4b36-ba94-074ce289f040';
        this.Question = '501f8a15-ee6e-4e2a-98bb-d9797e0a2e2a';

        this.ContractLib = '0e644800-fdf4-49c3-8e8a-97a00250ec41';
        this.CaseLib = 'c557b611-4e5d-47f2-8b84-5ecd610b80d3';
        this.RegulationsLib = '7e560cbe-ea87-445f-a774-084033837b04';
        this.CommonLib = '2ac68d1f-94c1-498a-b5fa-0573549e0896';
        this.Petition = '656aa826-29c6-4b8a-a62f-8f039e56ce35';
        this.ContractPetitionLib = '2f0ed324-6969-4942-bcc0-a7a972f28c95';
        this.RegulationsPetitionLib = '5d38ad07-8b38-4e61-9594-cac0cdb120a9';

        this.ContractLibRelativeUrl = this.SiteRelativeUrl + '/' + 'ContractLib';
        this.CaseLibRelativeUrl = this.SiteRelativeUrl + '/' + 'CaseLib';
        this.RegulationsLibRelativeUrl = this.SiteRelativeUrl + '/' + 'RegulationsLib';
        this.CommonLibRelativeUrl = this.SiteRelativeUrl + '/' + 'CommonLib';

        this.ContractPetitionLibRelativeUrl = this.SiteRelativeUrl + '/' + 'ContractPetitionLib';

        this.RegulationsPetitionLibRelativeUrl = this.SiteRelativeUrl + '/' + 'RegulationsPetitionLib';
        this.DumyLibRelativeUrl = this.SiteRelativeUrl + '/' + 'DraftFileLib'

        this.GraphApiEndPoint = 'https://microsoftgraph.chinacloudapi.cn';

        this.ApiActionLog = '2a940ba3-2b93-40e6-ad7a-5239045498df';

        break;
    }
  }
}

//参数：0：开发环境   2：客户生产环境  注意：如果部署客户环境，这里一定要选2 ，同时记得自增版本号
let ListGUID: SiteAppSetting = new SiteAppSetting(1);

export { ListGUID };
